

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 7.00.0555 */
/* at Tue Jan 14 15:59:10 2014
 */
/* Compiler settings for PGLServer.idl:
    Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555 
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING(  ) */

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __PGLServer_h__
#define __PGLServer_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __IPGLEngine_FWD_DEFINED__
#define __IPGLEngine_FWD_DEFINED__
typedef interface IPGLEngine IPGLEngine;
#endif 	/* __IPGLEngine_FWD_DEFINED__ */


#ifndef __PGLEngine_FWD_DEFINED__
#define __PGLEngine_FWD_DEFINED__

#ifdef __cplusplus
typedef class PGLEngine PGLEngine;
#else
typedef struct PGLEngine PGLEngine;
#endif /* __cplusplus */

#endif 	/* __PGLEngine_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __IPGLEngine_INTERFACE_DEFINED__
#define __IPGLEngine_INTERFACE_DEFINED__

/* interface IPGLEngine */
/* [unique][helpstring][dual][oleautomation][uuid][object] */ 


EXTERN_C const IID IID_IPGLEngine;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("7B2E8691-9B85-4B6D-9BAA-8D31CDC8AC6F")
    IPGLEngine : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Figure( 
            /* [retval][out] */ long *plDlgID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Plot( 
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlotLOD( 
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ float fCompRatio,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Region( 
            /* [retval][out] */ long *plRegionID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Title( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LeftLabel( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RightLabel( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BottomLabel( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCR( 
            /* [retval][out] */ long *plRegionID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Divide( 
            /* [in] */ long lRegionID,
            /* [in] */ long lnRows,
            /* [in] */ long lnCols,
            /* [retval][out] */ long *plRegionID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetParent( 
            /* [in] */ long lObjectID,
            /* [retval][out] */ long *plParentID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetHelp( 
            /* [in] */ long lObjectID,
            /* [retval][out] */ BSTR *pbstrHelp) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Get( 
            /* [in] */ long lObjectID,
            /* [in] */ BSTR bstrProp,
            /* [retval][out] */ BSTR *pbstrValue) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Set( 
            /* [in] */ long lObjectID,
            /* [in] */ BSTR bstrPropAndValues) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CloseRegion( 
            /* [in] */ long lRegionID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CloseFigure( 
            /* [in] */ long lFigID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CloseAllFigures( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetChild( 
            /* [in] */ long lParentID,
            /* [in] */ long lIndex,
            /* [retval][out] */ long *plChildID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetChildrenSize( 
            /* [in] */ long lRegionID,
            /* [retval][out] */ long *plChildrenSize) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetCR( 
            /* [in] */ long lRegionID,
            /* [retval][out] */ VARIANT_BOOL *psSuccess) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveXML( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [in] */ VARIANT_BOOL bZipping,
            /* [retval][out] */ short *pbSuccess) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadXML( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RenderToFile( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [in] */ BSTR bstrFormat,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Legend( 
            /* [in] */ long lRegionID,
            /* [retval][out] */ long *lLegendID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OutOfChild( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Stock( 
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saOpen,
            /* [in] */ SAFEARRAY * saHigh,
            /* [in] */ SAFEARRAY * saLow,
            /* [in] */ SAFEARRAY * saClose,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ErrorBar( 
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ SAFEARRAY * saErrorUp,
            /* [in] */ SAFEARRAY * saErrorDown,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RenderToStream( 
            /* [in] */ long lRegionID,
            /* [in] */ IUnknown *pStream,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Scatter( 
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ SAFEARRAY * saValues,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AutoZoom( 
            /* [in] */ BSTR bstrState) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Grid( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrState,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Histogram( 
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saY,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ErrorBarY( 
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ SAFEARRAY * saErrorUp,
            /* [in] */ SAFEARRAY * saErrorDown,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlotY( 
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saY,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlotLODY( 
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ float fCompRatio,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlotFcn( 
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ BSTR bstrFcnOfX,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlotFcnY( 
            /* [in] */ long lRegionID,
            /* [in] */ long nPoints,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ BSTR bstrFcnOfX,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetObject( 
            /* [in] */ long lRegionID,
            /* [in] */ long lIndex,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetObjectsSize( 
            /* [in] */ long lRegionID,
            /* [retval][out] */ long *lObjectsSize) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CloseAllRegions( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlotHor( 
            /* [in] */ long lRegionID,
            /* [in] */ double dY,
            /* [defaultvalue][in] */ BSTR bstrFlags,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlotVer( 
            /* [in] */ long lRegionID,
            /* [in] */ double dX,
            /* [defaultvalue][in] */ BSTR bstrFlags,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Image( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *plObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Layout( 
            /* [in] */ long lRegionID,
            /* [defaultvalue][in] */ BSTR bstrLayout,
            /* [retval][out] */ long *plRegionID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CandleStick( 
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saOpen,
            /* [in] */ SAFEARRAY * saHigh,
            /* [in] */ SAFEARRAY * saLow,
            /* [in] */ SAFEARRAY * saClose,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DoModalRegion( 
            /* [in] */ long lRegionID,
            /* [retval][out] */ int *iResult) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadCSVFile( 
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [retval][out] */ VARIANT_BOOL *pbResult) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RenderToResponse( 
            /* [in] */ long lRegionID,
            /* [in] */ IUnknown *pResponse,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IPGLEngineVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IPGLEngine * This,
            /* [in] */ REFIID riid,
            /* [annotation][iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IPGLEngine * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IPGLEngine * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IPGLEngine * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IPGLEngine * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IPGLEngine * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IPGLEngine * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Figure )( 
            IPGLEngine * This,
            /* [retval][out] */ long *plDlgID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Plot )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlotLOD )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ float fCompRatio,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Region )( 
            IPGLEngine * This,
            /* [retval][out] */ long *plRegionID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Title )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LeftLabel )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RightLabel )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BottomLabel )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrLabel,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCR )( 
            IPGLEngine * This,
            /* [retval][out] */ long *plRegionID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Divide )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ long lnRows,
            /* [in] */ long lnCols,
            /* [retval][out] */ long *plRegionID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetParent )( 
            IPGLEngine * This,
            /* [in] */ long lObjectID,
            /* [retval][out] */ long *plParentID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetHelp )( 
            IPGLEngine * This,
            /* [in] */ long lObjectID,
            /* [retval][out] */ BSTR *pbstrHelp);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Get )( 
            IPGLEngine * This,
            /* [in] */ long lObjectID,
            /* [in] */ BSTR bstrProp,
            /* [retval][out] */ BSTR *pbstrValue);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Set )( 
            IPGLEngine * This,
            /* [in] */ long lObjectID,
            /* [in] */ BSTR bstrPropAndValues);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CloseRegion )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CloseFigure )( 
            IPGLEngine * This,
            /* [in] */ long lFigID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CloseAllFigures )( 
            IPGLEngine * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChild )( 
            IPGLEngine * This,
            /* [in] */ long lParentID,
            /* [in] */ long lIndex,
            /* [retval][out] */ long *plChildID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChildrenSize )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [retval][out] */ long *plChildrenSize);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetCR )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [retval][out] */ VARIANT_BOOL *psSuccess);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveXML )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [in] */ VARIANT_BOOL bZipping,
            /* [retval][out] */ short *pbSuccess);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadXML )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RenderToFile )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [in] */ BSTR bstrFormat,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Legend )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [retval][out] */ long *lLegendID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OutOfChild )( 
            IPGLEngine * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Stock )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saOpen,
            /* [in] */ SAFEARRAY * saHigh,
            /* [in] */ SAFEARRAY * saLow,
            /* [in] */ SAFEARRAY * saClose,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ErrorBar )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ SAFEARRAY * saErrorUp,
            /* [in] */ SAFEARRAY * saErrorDown,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RenderToStream )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ IUnknown *pStream,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Scatter )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saX,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ SAFEARRAY * saValues,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AutoZoom )( 
            IPGLEngine * This,
            /* [in] */ BSTR bstrState);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Grid )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrState,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Histogram )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saY,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ErrorBarY )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ SAFEARRAY * saErrorUp,
            /* [in] */ SAFEARRAY * saErrorDown,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlotY )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saY,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlotLODY )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ float fCompRatio,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlotFcn )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ SAFEARRAY * saY,
            /* [in] */ BSTR bstrFcnOfX,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlotFcnY )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ long nPoints,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ BSTR bstrFcnOfX,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetObject )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ long lIndex,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetObjectsSize )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [retval][out] */ long *lObjectsSize);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CloseAllRegions )( 
            IPGLEngine * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlotHor )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ double dY,
            /* [defaultvalue][in] */ BSTR bstrFlags,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlotVer )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ double dX,
            /* [defaultvalue][in] */ BSTR bstrFlags,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Image )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *plObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Layout )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [defaultvalue][in] */ BSTR bstrLayout,
            /* [retval][out] */ long *plRegionID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CandleStick )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ double dX0,
            /* [in] */ double dXStep,
            /* [in] */ SAFEARRAY * saOpen,
            /* [in] */ SAFEARRAY * saHigh,
            /* [in] */ SAFEARRAY * saLow,
            /* [in] */ SAFEARRAY * saClose,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ long *lObjectID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DoModalRegion )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [retval][out] */ int *iResult);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadCSVFile )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ BSTR bstrFileName,
            /* [retval][out] */ VARIANT_BOOL *pbResult);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RenderToResponse )( 
            IPGLEngine * This,
            /* [in] */ long lRegionID,
            /* [in] */ IUnknown *pResponse,
            /* [defaultvalue][in] */ BSTR bstrFormat,
            /* [retval][out] */ VARIANT_BOOL *pbSuccess);
        
        END_INTERFACE
    } IPGLEngineVtbl;

    interface IPGLEngine
    {
        CONST_VTBL struct IPGLEngineVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IPGLEngine_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IPGLEngine_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IPGLEngine_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IPGLEngine_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define IPGLEngine_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define IPGLEngine_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define IPGLEngine_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 


#define IPGLEngine_Figure(This,plDlgID)	\
    ( (This)->lpVtbl -> Figure(This,plDlgID) ) 

#define IPGLEngine_Plot(This,lRegionID,saX,saY,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> Plot(This,lRegionID,saX,saY,bstrFormat,lObjectID) ) 

#define IPGLEngine_PlotLOD(This,lRegionID,saX,saY,fCompRatio,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> PlotLOD(This,lRegionID,saX,saY,fCompRatio,bstrFormat,lObjectID) ) 

#define IPGLEngine_Region(This,plRegionID)	\
    ( (This)->lpVtbl -> Region(This,plRegionID) ) 

#define IPGLEngine_Title(This,lRegionID,bstrLabel,plObjectID)	\
    ( (This)->lpVtbl -> Title(This,lRegionID,bstrLabel,plObjectID) ) 

#define IPGLEngine_LeftLabel(This,lRegionID,bstrLabel,plObjectID)	\
    ( (This)->lpVtbl -> LeftLabel(This,lRegionID,bstrLabel,plObjectID) ) 

#define IPGLEngine_RightLabel(This,lRegionID,bstrLabel,plObjectID)	\
    ( (This)->lpVtbl -> RightLabel(This,lRegionID,bstrLabel,plObjectID) ) 

#define IPGLEngine_BottomLabel(This,lRegionID,bstrLabel,plObjectID)	\
    ( (This)->lpVtbl -> BottomLabel(This,lRegionID,bstrLabel,plObjectID) ) 

#define IPGLEngine_GetCR(This,plRegionID)	\
    ( (This)->lpVtbl -> GetCR(This,plRegionID) ) 

#define IPGLEngine_Divide(This,lRegionID,lnRows,lnCols,plRegionID)	\
    ( (This)->lpVtbl -> Divide(This,lRegionID,lnRows,lnCols,plRegionID) ) 

#define IPGLEngine_GetParent(This,lObjectID,plParentID)	\
    ( (This)->lpVtbl -> GetParent(This,lObjectID,plParentID) ) 

#define IPGLEngine_GetHelp(This,lObjectID,pbstrHelp)	\
    ( (This)->lpVtbl -> GetHelp(This,lObjectID,pbstrHelp) ) 

#define IPGLEngine_Get(This,lObjectID,bstrProp,pbstrValue)	\
    ( (This)->lpVtbl -> Get(This,lObjectID,bstrProp,pbstrValue) ) 

#define IPGLEngine_Set(This,lObjectID,bstrPropAndValues)	\
    ( (This)->lpVtbl -> Set(This,lObjectID,bstrPropAndValues) ) 

#define IPGLEngine_CloseRegion(This,lRegionID)	\
    ( (This)->lpVtbl -> CloseRegion(This,lRegionID) ) 

#define IPGLEngine_CloseFigure(This,lFigID)	\
    ( (This)->lpVtbl -> CloseFigure(This,lFigID) ) 

#define IPGLEngine_CloseAllFigures(This)	\
    ( (This)->lpVtbl -> CloseAllFigures(This) ) 

#define IPGLEngine_GetChild(This,lParentID,lIndex,plChildID)	\
    ( (This)->lpVtbl -> GetChild(This,lParentID,lIndex,plChildID) ) 

#define IPGLEngine_GetChildrenSize(This,lRegionID,plChildrenSize)	\
    ( (This)->lpVtbl -> GetChildrenSize(This,lRegionID,plChildrenSize) ) 

#define IPGLEngine_SetCR(This,lRegionID,psSuccess)	\
    ( (This)->lpVtbl -> SetCR(This,lRegionID,psSuccess) ) 

#define IPGLEngine_SaveXML(This,lRegionID,bstrFileName,bZipping,pbSuccess)	\
    ( (This)->lpVtbl -> SaveXML(This,lRegionID,bstrFileName,bZipping,pbSuccess) ) 

#define IPGLEngine_LoadXML(This,lRegionID,bstrFileName,pbSuccess)	\
    ( (This)->lpVtbl -> LoadXML(This,lRegionID,bstrFileName,pbSuccess) ) 

#define IPGLEngine_RenderToFile(This,lRegionID,bstrFileName,bstrFormat,pbSuccess)	\
    ( (This)->lpVtbl -> RenderToFile(This,lRegionID,bstrFileName,bstrFormat,pbSuccess) ) 

#define IPGLEngine_Legend(This,lRegionID,lLegendID)	\
    ( (This)->lpVtbl -> Legend(This,lRegionID,lLegendID) ) 

#define IPGLEngine_OutOfChild(This)	\
    ( (This)->lpVtbl -> OutOfChild(This) ) 

#define IPGLEngine_Stock(This,lRegionID,dX0,dXStep,saOpen,saHigh,saLow,saClose,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> Stock(This,lRegionID,dX0,dXStep,saOpen,saHigh,saLow,saClose,bstrFormat,lObjectID) ) 

#define IPGLEngine_ErrorBar(This,lRegionID,saX,saY,saErrorUp,saErrorDown,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> ErrorBar(This,lRegionID,saX,saY,saErrorUp,saErrorDown,bstrFormat,lObjectID) ) 

#define IPGLEngine_RenderToStream(This,lRegionID,pStream,bstrFormat,pbSuccess)	\
    ( (This)->lpVtbl -> RenderToStream(This,lRegionID,pStream,bstrFormat,pbSuccess) ) 

#define IPGLEngine_Scatter(This,lRegionID,saX,saY,saValues,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> Scatter(This,lRegionID,saX,saY,saValues,bstrFormat,lObjectID) ) 

#define IPGLEngine_AutoZoom(This,bstrState)	\
    ( (This)->lpVtbl -> AutoZoom(This,bstrState) ) 

#define IPGLEngine_Grid(This,lRegionID,bstrState,plObjectID)	\
    ( (This)->lpVtbl -> Grid(This,lRegionID,bstrState,plObjectID) ) 

#define IPGLEngine_Histogram(This,lRegionID,saY,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> Histogram(This,lRegionID,saY,bstrFormat,lObjectID) ) 

#define IPGLEngine_ErrorBarY(This,lRegionID,dX0,dXStep,saY,saErrorUp,saErrorDown,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> ErrorBarY(This,lRegionID,dX0,dXStep,saY,saErrorUp,saErrorDown,bstrFormat,lObjectID) ) 

#define IPGLEngine_PlotY(This,lRegionID,dX0,dXStep,saY,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> PlotY(This,lRegionID,dX0,dXStep,saY,bstrFormat,lObjectID) ) 

#define IPGLEngine_PlotLODY(This,lRegionID,dX0,dXStep,saY,fCompRatio,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> PlotLODY(This,lRegionID,dX0,dXStep,saY,fCompRatio,bstrFormat,lObjectID) ) 

#define IPGLEngine_PlotFcn(This,lRegionID,saY,bstrFcnOfX,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> PlotFcn(This,lRegionID,saY,bstrFcnOfX,bstrFormat,lObjectID) ) 

#define IPGLEngine_PlotFcnY(This,lRegionID,nPoints,dX0,dXStep,bstrFcnOfX,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> PlotFcnY(This,lRegionID,nPoints,dX0,dXStep,bstrFcnOfX,bstrFormat,lObjectID) ) 

#define IPGLEngine_GetObject(This,lRegionID,lIndex,lObjectID)	\
    ( (This)->lpVtbl -> GetObject(This,lRegionID,lIndex,lObjectID) ) 

#define IPGLEngine_GetObjectsSize(This,lRegionID,lObjectsSize)	\
    ( (This)->lpVtbl -> GetObjectsSize(This,lRegionID,lObjectsSize) ) 

#define IPGLEngine_CloseAllRegions(This)	\
    ( (This)->lpVtbl -> CloseAllRegions(This) ) 

#define IPGLEngine_PlotHor(This,lRegionID,dY,bstrFlags,plObjectID)	\
    ( (This)->lpVtbl -> PlotHor(This,lRegionID,dY,bstrFlags,plObjectID) ) 

#define IPGLEngine_PlotVer(This,lRegionID,dX,bstrFlags,plObjectID)	\
    ( (This)->lpVtbl -> PlotVer(This,lRegionID,dX,bstrFlags,plObjectID) ) 

#define IPGLEngine_Image(This,lRegionID,bstrFileName,bstrFormat,plObjectID)	\
    ( (This)->lpVtbl -> Image(This,lRegionID,bstrFileName,bstrFormat,plObjectID) ) 

#define IPGLEngine_Layout(This,lRegionID,bstrLayout,plRegionID)	\
    ( (This)->lpVtbl -> Layout(This,lRegionID,bstrLayout,plRegionID) ) 

#define IPGLEngine_CandleStick(This,lRegionID,dX0,dXStep,saOpen,saHigh,saLow,saClose,bstrFormat,lObjectID)	\
    ( (This)->lpVtbl -> CandleStick(This,lRegionID,dX0,dXStep,saOpen,saHigh,saLow,saClose,bstrFormat,lObjectID) ) 

#define IPGLEngine_DoModalRegion(This,lRegionID,iResult)	\
    ( (This)->lpVtbl -> DoModalRegion(This,lRegionID,iResult) ) 

#define IPGLEngine_LoadCSVFile(This,lRegionID,bstrFileName,pbResult)	\
    ( (This)->lpVtbl -> LoadCSVFile(This,lRegionID,bstrFileName,pbResult) ) 

#define IPGLEngine_RenderToResponse(This,lRegionID,pResponse,bstrFormat,pbSuccess)	\
    ( (This)->lpVtbl -> RenderToResponse(This,lRegionID,pResponse,bstrFormat,pbSuccess) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IPGLEngine_INTERFACE_DEFINED__ */



#ifndef __PGLSERVERLib_LIBRARY_DEFINED__
#define __PGLSERVERLib_LIBRARY_DEFINED__

/* library PGLSERVERLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_PGLSERVERLib;

EXTERN_C const CLSID CLSID_PGLEngine;

#ifdef __cplusplus

class DECLSPEC_UUID("EA51B1E7-415E-42D9-BC5B-662DBA25394D")
PGLEngine;
#endif
#endif /* __PGLSERVERLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long *, unsigned long            , LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long *, unsigned char *, LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long *, unsigned char *, LPSAFEARRAY * ); 
void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long *, LPSAFEARRAY * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


